from flask import Blueprint
from flask_restful import Api
from resources.Search_key_Word import Search_key_Word
from resources.excel_list import excel_list
from resources.excel_list import download_excel
from resources.excel_list import show_process
api_bp = Blueprint("api", __name__)
# flask_restful api去绘制蓝图
flask_api = Api(app=api_bp)
flask_api.add_resource(Search_key_Word, "/searchWord")
flask_api.add_resource(excel_list, "/list")
flask_api.add_resource(download_excel, "/download")
flask_api.add_resource(show_process, "/showProcess")